using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Globalization;
using System.Resources;

namespace Media_Renamer {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            try {

            
            if (Properties.Settings.Default.culture != String.Empty) {
                culture = CultureInfo.CreateSpecificCulture(Properties.Settings.Default.culture);
            } else {
                culture = CultureInfo.CurrentCulture;
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
            } catch (Exception e) {
                //Console.WriteLine("An Error has ocurred: {0}{1}\n This is the stack trace: \n{2}", e.GetType().Name, e.Message,e.StackTrace.ToString());                
                throw e;
            }
        }
        public static CultureInfo culture;
    }
}